package com.yimi.yinhepda.adapter.RecycleAdapter;

import android.content.Context;

import com.yimi.yinhepda.R;
import com.pda.ym.base.CommonRecycleAdapter;
import com.pda.ym.base.CommonViewHolder;
import com.yimi.yinhepda.entity.bean.SealNoEntity;

import java.util.List;

/**
 * Created by msa1111 on 2018/6/7.
 */

public class ScanBlockingAdapter extends CommonRecycleAdapter<SealNoEntity> {

    public ScanBlockingAdapter(Context context, List<SealNoEntity> dataList) {
        this(context, dataList,  R.layout.item_scan_unblocking);
    }

    public ScanBlockingAdapter(Context context, List<SealNoEntity> dataList, int layoutId) {
        super(context, dataList, layoutId);
    }

    @Override
    public void bindData(CommonViewHolder holder, SealNoEntity data, int position) {
        holder.setText(R.id.tv_no,position+1+"");
        holder.setText(R.id.tv_sealNo,data.getSealNo());
    }
}
